<template>
	<view class="introduce">
		<view class="box" v-for="(item,index) in list" :key="index" :style="{backgroundImage:`url(${item.image})`,backgroundSize: 'cover'}">
			<view style="padding-left: 40rpx;color: #fff;font-size: 40rpx;font-weight: 700;"></view>
			<view style="padding-right: 60rpx;width: 200rpx;"><u-button color="#1D3AA1" shape="circle" text="查看详情" @click="toDetail(item)"></u-button></view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				list: [{
						name: "送检验货",
						image:"http://applet.atptest.com/23041201.jpg"
					},
					{
						name: "超声波扫描",
						image:"http://applet.atptest.com/23041202.jpg"
					},
					{
						name: "X-Ray检测",
						image:"http://applet.atptest.com/23041203.jpg"
					},
					{
						name: "电性能检测",
						image:"http://applet.atptest.com/23041204.jpg"
					},
					{
						name: "环境温度测试",
						image:"http://applet.atptest.com/23041205.jpg"
					},
					{
						name: "可焊性",
						image:"http://applet.atptest.com/2023051901.jpg"
					},
					{
						name: "开盖",
						image:"http://applet.atptest.com/2023051902.jpg"
					}
				]
			};
		},
		methods:{
			toDetail(i){
				uni.navigateTo({
					url:'/pagesB/pages/introDetail/introDetail?i=' + encodeURIComponent(JSON.stringify(i))
				})
			}
		}
	}
</script>

<style lang="scss">
	.introduce{
		padding: 0 28rpx;
		.box {
			display: flex;
			align-items: center;
			justify-content: space-between;
			width: 100%;
			height: 250rpx;
			margin-bottom: 10rpx;
			border-radius: 8rpx;
		}
	}
	
</style>
